﻿<UserControl x:Class="Zcu.PanelComposer.Views.NewProjectView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <Label x:Name="DisplayName" Content="Title" FontSize="16" DockPanel.Dock="Top" />

        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.25*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="0.25*" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" x:Name="BackAction" Content="Back" />
            <Button Grid.Column="2" x:Name="SaveAction" Content="Save project"  />
        </Grid>

        <GroupBox Header="Basic data" Width="400" Padding="10">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.4*" />
                <ColumnDefinition Width="0.6*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition />
            </Grid.RowDefinitions>
            
            <Label Content="Name:" Grid.Column="0" />
            <TextBox x:Name="ProjectName" Grid.Column="1" Style="{StaticResource TextBoxStyle}" />
            
            <Label Content="Num. of floors:" Grid.Column="0" Grid.Row="1" />
            <xctk:IntegerUpDown x:Name="Floors" Grid.Column="1" Grid.Row="1" 
                                Value="{Binding Floors}" Height="25"
                                Increment="1" Maximum="99" Minimum="1"
                                Watermark="Enter number of floors"
                                Style="{StaticResource ValidateStyle}"/>
        </Grid>
        </GroupBox>
    </DockPanel>
</UserControl>
